package com.zg.nacos.domain.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/27 16:29
 */

@Data
public class RegisterReq {


    private String namespace;

    @ApiModelProperty(value = "服务名称", required = true)
    @NotEmpty(message="服务名称不能为空")
    private String serviceName;

    @ApiModelProperty(value = "服务CODE", required = true)
    @NotEmpty(message="服务Code不能为空")
    private String serviceCode;

    @ApiModelProperty(value = "ip", required = true)
    @NotEmpty(message="ip不能为空")
    private String ip;

    @ApiModelProperty(value = "端口", required = true)
    @NotNull(message="端口不能为空")
    private Integer port;


    private String healthCheckUrl; // C服务的真实健康检查接口

    private Map<String, String> metadata;
}
